package mobile.game.common.config.json;

import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;


public class JNode {
	private String name;
	private int listenPort = 0;
	private String addr;
	private List<JRemote> remotes;
	private List<JPort> ports;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public int getListenPort() {
		return listenPort;
	}
	public void setListenPort(int listenPort) {
		this.listenPort = listenPort;
	}
	
	public String getAddr() {
		return addr;
	}
	public void setAddr(String addr) {
		this.addr = addr;
	}
	public List<JRemote> getRemotes() {
		return remotes;
	}
	public void setRemotes(List<JRemote> remotes) {
		this.remotes = remotes;
	}
	public List<JPort> getPorts() {
		return ports;
	}
	public void setPorts(List<JPort> ports) {
		this.ports = ports;
	}
	
	@Override
	public String toString() {
		return new ToStringBuilder(this)
				.append("name", this.name)
				.toString();
	}
}
